package be.donovan.gui;

import be.donovan.gui.helper.ServiceLocator;
import be.donovan.gui.helper.components.AbstractDTOController;
import be.donovan.gui.helper.components.JXTableDecorator;
import be.donovan.gui.helper.components.MVCTableModel;
import be.donovan.model.PersonInfo;
import be.donovan.model.persist.PersistenceHelper;

public class AllPersonController extends AbstractDTOController<PersonInfo>{

	@Override
	public void initListeners() {
		super.initListeners();
		getView().setName(getMessage("AllPerson"));
		JXTableDecorator.setStyleAndEditors(getView().catalogTable, "catalogTable."+getDtoClass().getSimpleName(),
				getView().scrollPane, "Manage Persons");
	}

	@Override
	public Class<PersonInfo> getDtoClass() {
		return PersonInfo.class;
	}

}
